{% extends 'myadmin/base.html' %}
{% block myadmin_teachers_audit_active %}
    active
{% endblock %}
{% block myadmin %}
    <h3 style="margin-top: 15px">&emsp;&emsp;用户管理</h3>

    <table class="table" style="vertical-align: middle;text-align: center;">
        <thead>
        <tr>

            <th scope="col">用户名</th>
            <th scope="col">图片</th>
            <th scope="col">教工号</th>
            <th scope="col">姓名</th>
            <th scope="col">手机号</th>
            <th scope="col">邮箱</th>
            <th scope="col">操作</th>
        </tr>
        </thead>
        <tbody>
        {% for i in user %}
            <tr>

                <td>{{ i.name }}</td>
                {% load static %}
                <td><img src="/static/media/{{ i.photo }}" height="60px" alt=""></td>
                <td>{{ i.teacher_id }}</td>
                <td>{{ i.teacher_name }}</td>
                <td>{{ i.phone }}</td>
                <td>{{ i.email }}</td>
                <td><a href="{% url 'myadmin_teachers_audit_id' i.id %}?type=3"
                       class="btn btn-primary glyphicon glyphicon-pencil btn-sm">同意</a>
                    <a onclick="if(confirm('你确定拒绝吗？')==false)return false;location.href=('{% url 'myadmin_teachers_audit_id' i.id %}?type=5')"
                       class="btn btn-danger glyphicon glyphicon-remove btn-sm">拒绝</a>
                </td>
            </tr>
        {% endfor %}


        </tbody>
    </table>
{% endblock %}

